import React, { Component } from 'react';
import { observer, inject } from 'mobx-react';
import MyRoute from './router';
import Tabbar from './components/Tabbar';

import './css/index.css';

class Child extends Component {
  render() {
    const { tabbarShow } = this.props;
    return (
      <>
        {/* 其他内容 */}
        <MyRoute>{tabbarShow && <Tabbar></Tabbar>}</MyRoute>
      </>
    );
  }
}

export default inject((store) => {
  const { tabbarShow } = store.tabbarStore;
  return {
    tabbarShow,
  };
})(observer(Child));
